<?php
/**
 * AttenteForum
 */
class AttenteForum
{
	const TABLE_ATTENTE_FORUM			= 'attenteforum';
	const ID_FORUM_ATTENTE				= 'IDForum';
	const ID_ETUDIANT_ATTENTE			= 'ETUDIANTID';
	const RANG_ATTENTE					= 'RangForum';
	
     /**
     * @var integer
     */
    private $forum;

    /**
     * @var string
     */
    private $etudiant;

    /**
     * @var integer
     */
    private $rang;

    /**
     * Set rang
     *
     * @param integer $rang
     * @return AttenteForum
     */
    public function setRang($rang)
    {
        $this->rang = $rang;
    }

    /**
     * Get rang
     *
     * @return integer 
     */
    public function getRang()
    {
        return $this->rang;
    }

    /**
     * Set forum
     *
     * @param integer $id l'ID du forum
     * @return Forum
     */
    public function setForum($id = null)
    {
        $this->forum = $id;
    }

    /**
     * Get forum
     *
     * @return Forum
     */
    public function getForum()
    {
        return Forum::findById($this->forum);
    }

    /**
     * Set etudiant
     *
     * @param string $login Le login de l'étudiant
     * @return Forum
     */
    public function setEtudiant($id)
    {
        $this->etudiant = $id;
    }

    /**
     * Get etudiant
     *
     * @return Etudiants 
     */
    public function getEtudiant()
    {
        return Etudiants::findById($this->etudiant);
    }
}
